#define _CRT_SECURE_NO_WARNINGS
#include "stack.h"
void test01()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3); 
	StackPush(&s, 4);
	printf("%d\n", StackSize(&s));
	StackPop(&s);
	printf("%d\n", StackSize(&s));
	while (!StackEmpty(&s))
	{
		STDataType data = StackTop(&s);
		printf("%d ", data);
		StackPop(&s);
	}
}
int main()
{
	test01();
	return 0;
}